package com.xsz.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
	
	@RequestMapping("yyyy")
	public String t1() {
		System.out.println("hello 这里是t1方法里面");
		return "hhhhh";
	}
	
	@RequestMapping("b2/{p1}")
	public String t2(@PathVariable("p1") String p1) {
		System.out.println("hello 这里是t2方法里面"+p1);
		return "hhhhh";
	}

}
